Hello All!
Can any body tell me how to copy Objects in arrays with all its attributes .I have saved some particular objects in an array .And I want to copy those Objects in new Module .All is going fine except that some attributes are not accessed by the program:
void populateModule(Mod mod,Object objList[])/*populates the module with the given objList */
{
int i;
Object newobj=null
Obj obj=null
for (i=1;i<sizeof objList;i++)
{
obj=objList[i]
newobj=create(mod)
string objName=obj."Object Heading"
string objText=obj."Object Text"
string objReqID=obj."Req_ID"
newobj."Object Heading"=objName
newobj."Object Text"=objText
newobj."Req_ID"=objReqID
}
//"Req_ID" exists in both the source module (from where the objList[] is collected)and the target Module.When I run this code, error "unknown Object attribute()" is generated
Please suggest me how can I copy the objects along with its attributes.
MF2G_qaus_qazah - Mon Apr 23 05:58:26 EDT 2012 |